package com.ruipeng.shengyapo.service.impl;

import com.ruipeng.shengyapo.dao.CouponMapper;
import com.ruipeng.shengyapo.service.CouponService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by tu_pei on 17/6/13.
 */
@Service
public class CouponServiceimpl implements CouponService{

    @Autowired
    private CouponMapper couponMapper;

    @Override
    public int addComplaint(Map<String, Object> params) {
        return couponMapper.addComplaint(params);
    }

    @Override
    public List<Map<String, Object>> getUserCoupon(int userId) {
        return couponMapper.getCouponListByUserId(userId);
    }
}
